package com.gp.pj.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gp.pj.entity.DictItem;
import com.gp.pj.mapper.DictItemMapper;
import com.gp.pj.service.DictItemService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gp.pj.utils.ResultUtils;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Chloe
 * @since 2020-12-14
 */
@Service
public class DictItemServiceImpl extends ServiceImpl<DictItemMapper, DictItem> implements DictItemService {

    @Override
    public ResultUtils getDictItemList(String dictId) {
        IPage<DictItem> page = this.page(new Page<>(), Wrappers.<DictItem>lambdaQuery().eq(DictItem::getDictId,dictId));
        return ResultUtils.success(page);
    }
}
